package com.tomato.order.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OrderMaster {
    //订单id
    @TableId(type = IdType.INPUT)
    private String orderId;
    //买家名字
    private String buyerName;
    //买家地址
    private String buyerAddress;
    //微信openid
    private String buyerOpenid;
    //订单总额
    private double orderAmount;
    //状态,默认为新下单
    private Integer orderStatus = 1;
    //支付状态，默认为0为未支付
    private Integer payStatus = 0;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;
    @TableField(exist = false)
    private List<OrderDetail> orderDetailList;
}
